package com.zhkj.txg.module.home.entity

import com.chad.library.adapter.base.entity.node.BaseNode
import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse

data class ShopCategoryResponse(
    val data: MutableList<ShopCategoryEntity> = mutableListOf()
) : BaseResponse()

data class ShopCategoryEntity(
    val id: Int,
    val name: String = "",
    val pid: Int = 0,
    val level: Int = 0,
    val image: String = "",
    @SerializedName("tmenu")
    val child: MutableList<ShopCateSecondEntity> = mutableListOf()
) : BaseNode() {
    override var childNode: MutableList<BaseNode>? = null
}

data class ShopCateSecondEntity(
    val id: Int,
    val name: String,
    val level: Int = 0,
    val pid: Int = 0,
    val image: String = ""
) : BaseNode() {
    override val childNode: MutableList<BaseNode>? = null
}